package com.atguigu.yygh.shop.client;

import com.atguigu.yygh.vo.hosp.ScheduleOrderVo;
import com.atguigu.yygh.vo.order.SignInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author cs
 * @create 2021/3/25
 * @desc
 */
@FeignClient(value = "service-shop")
@Repository
public interface ShopFeignClient {

    /**
     * 根据排班id获取预约下单数据
     */
    @GetMapping("/api/shop/shop/inner/getScheduleOrderVo/{scheduleId}")
    ScheduleOrderVo getScheduleOrderVo(@PathVariable("scheduleId") String scheduleId);

    /**
     * 获取店铺签名信息
     */
    @GetMapping("/api/shop/shop/inner/getSignInfoVo/{shopcode}")
    public SignInfoVo getSignInfoVo(@PathVariable("shopcode") String shopcode);
}
